﻿#pragma once

#include <QtWidgets/QMainWindow>
#include <QMouseEvent>
#include "ui_MainWindow.h"
#include "qcustomplot.h"

class MainWindow : public QMainWindow
{
	Q_OBJECT

public:
	MainWindow(QWidget *parent = Q_NULLPTR);

private:
	Ui::MainWindowClass ui;

	public slots:
	void onCustomPlotClicked(QCPAbstractPlottable *plottable, int dataIndex, QMouseEvent *event);

private:
	void set_graph_3_data(QCustomPlot *customPlot);

	// 曲线风格
	QWidget *lineStyle();
	QWidget *add_png();
	QWidget *test_selection(); // 选中
	QWidget *set_color();
	QWidget *no_margin();
	QWidget *curve_8();

	void set_move(QCustomPlot *customPlot);

};
